package com.example.myproject.client;

public class gridLayout1 extends myGrid{

	/*griLayoutx is merely a way to set the patterns for each
	 * configuration.  It will go through, set each cell in a grid to available 
	 * for 'x'.  if it is a plain module, it also adds it to the avaiable queue
	 * since plains need to be set first.
	 */	
	public gridLayout1()
	{
		//init main components
		super();
		
		
		
		//SET PLAINS FIRST!!!!  These need a special configuration
		for(int i = 17; i <=28; i++)
		{
			layout[50][i].availFor[plain] = true;
			availCells.add(layout[50][i]);
		}
		for(int i = 49; i >= 45; i--)
		{
			layout[i][20].availFor[plain] = true;
			availCells.add(layout[i][20]);
		}
		for(int i = 21; i <=29; i++)
		{
			layout[46][i].availFor[plain] = true;
			availCells.add(layout[46][i]);
		}
		for(int i = 51; i <= 55; i++)
		{
			layout[i][20].availFor[plain] = true;
			availCells.add(layout[i][20]);
		}
		for(int i = 21; i <=29; i++)
		{
			layout[54][i].availFor[plain] = true;
			availCells.add(layout[54][i]);
		}
		
		layout[50][16].availFor[air] = true;
		
		layout[49][17].availFor[control] = true;		
		layout[51][17].availFor[med] = true;		

		layout[45][19].availFor[food] = true;	
		layout[46][19].availFor[canteen] = true;		
		layout[47][19].availFor[food] = true;	
		layout[48][19].availFor[food] = true;		
		layout[49][19].availFor[power] = true;
		layout[51][19].availFor[power] = true;		
		layout[52][19].availFor[food] = true;		
		layout[53][19].availFor[food] = true;			
		layout[54][19].availFor[canteen] = true;	
		layout[55][19].availFor[food] = true;
				
		layout[44][20].availFor[air] = true;		
		layout[56][20].availFor[air] = true;
	
		layout[45][21].availFor[med] = true;
		layout[47][21].availFor[control] = true;
		layout[48][21].availFor[gym] = true;
		layout[49][21].availFor[sanit] = true;
		layout[51][21].availFor[sanit] = true;
		layout[52][21].availFor[gym] = true;
		layout[53][21].availFor[control] = true;
		layout[55][21].availFor[med] = true;		

		layout[45][22].availFor[dorm] = true;
		layout[47][22].availFor[dorm] = true;
		layout[49][22].availFor[dorm] = true;
		layout[51][22].availFor[dorm] = true;
		layout[53][22].availFor[dorm] = true;
		layout[55][22].availFor[dorm] = true;
	
		layout[45][23].availFor[dorm] = true;
		layout[47][23].availFor[dorm] = true;
		layout[49][23].availFor[dorm] = true;
		layout[51][23].availFor[dorm] = true;
		layout[53][23].availFor[dorm] = true;
		layout[55][23].availFor[dorm] = true;
	
		layout[45][24].availFor[sanit] = true;
		layout[47][24].availFor[sanit] = true;
		layout[53][24].availFor[sanit] = true;
		layout[55][24].availFor[sanit] = true;
		
		layout[45][25].availFor[dorm] = true;
		layout[47][25].availFor[dorm] = true;
		layout[53][25].availFor[dorm] = true;
		layout[55][25].availFor[dorm] = true;
		
		layout[45][26].availFor[dorm] = true;
		layout[47][26].availFor[dorm] = true;
		layout[53][26].availFor[dorm] = true;
		layout[55][26].availFor[dorm] = true;
		
		layout[45][27].availFor[sanit] = true;
		layout[47][27].availFor[sanit] = true;
		layout[49][27].availFor[power] = true;
		layout[51][27].availFor[power] = true;
		layout[53][27].availFor[sanit] = true;
		layout[55][27].availFor[sanit] = true;
		
		layout[45][28].availFor[gym] = true;
		layout[49][28].availFor[control] = true;
		layout[51][28].availFor[med] = true;
		layout[55][28].availFor[gym] = true;
		
		layout[45][29].availFor[food] = true;
		layout[47][29].availFor[food] = true;
		layout[50][29].availFor[air] = true;
		layout[53][29].availFor[food] = true;
		layout[55][29].availFor[food] = true;
		
		layout[46][30].availFor[canteen] = true;
		layout[54][30].availFor[canteen] = true;
		
		//add all non-plain cells to available list
		setAvailCells();
	}	
}